 <nav id="primary_nav">
        <ul>
            <? $auth = Zend_Auth::getInstance();?>
            <? $request = Zend_Controller_Front::getInstance()->getRequest();?>
            <? if ($auth->hasIdentity()):?>
            <li class="nav_forms <?= $request->getControllerName() == 'users' ? 'active' : ''; ?>"><a href="<?= $this->url(array(
                    'controller'    => 'users',
                    'action'        => 'index',
                    'id'            => Zend_Auth::getInstance()->hasIdentity() ? Zend_Auth::getInstance()->getIdentity()->user_id : ""
                    ), "", true);?>">Профиль</a>
            </li>
            <?endif;?>
            <li class="nav_pages <?= $request->getControllerName() == 'problems' || $request->getControllerName() == 'status' ? 'active' : ''; ?>"><a href="<?= $this->url(array(
                    'controller'    => 'problems',
                    'action'        => 'index'
                    ), "", true);?>">Маселелер жыйнагы</a>
            </li>
            
            <li class="nav_dashboard <?= $request->getControllerName() == 'olymps' ? 'active' : ""; ?>"><a href="<?= $this->url(array(
                    'controller'    => 'olymps',
                    'action'        => 'index'
                    ), "", true);?>">Олимпиадалар</a></li>
            
            <li class="nav_uielements <?= $request->getControllerName() == 'algorithms' ? 'active' : ""; ?>"><a href="<?= $this->url(array(
                    'controller'    => 'algorithms',
                    'action'        => 'index'
                    ), "", true);?>">Алгоритмдер</a></li>
            
<!--            <li class="nav_graphs"><a href="">Рейтинг</a></li>-->
            <? if ($auth->hasIdentity() && $auth->getIdentity()->user_role_id == 1) :?>
                    <li class="nav_typography <?= $request->getControllerName() == 'admin' ? 'active' : ""; ?>"><a href="<?= $this->url(array(
                        'controller'    => 'admin',
                        'action'        => 'index'
                    ), "", true);?>">Админ панель</a></li>
            <? endif;?>
        </ul>
    </nav>